package com.jspgou.cms.dao;

import java.util.List;

import com.jspgou.common.hibernate3.Updater;
import com.jspgou.common.page.Pagination;
import com.jspgou.cms.entity.ShopTuijanproduct;
import com.jspgou.cms.entity.ShopTuijian;
import com.jspgou.cms.entity.Product;

public interface ShopTuijanproductDao {
	public Pagination getPage(int pageNo, int pageSize);

	public ShopTuijanproduct findById(Long id);

	public ShopTuijanproduct save(ShopTuijanproduct bean);

	public ShopTuijanproduct updateByUpdater(Updater<ShopTuijanproduct> updater);

	public ShopTuijanproduct deleteById(Long id);
	
	public  List<ShopTuijanproduct> getShopTuijanproducts(Product product,ShopTuijian tuijian);//根据推荐分类和商品查询是否已经推荐过
	
	
	public Pagination getBytuijian(Long id,int pageNo, int pageSize);//根据推荐分类查询该分类下所有的商品分页
	
	public List<ShopTuijanproduct> getList(Long id,int count);//根据推荐分类和查询条数查询该分类下商品
}